import { APP, BUSINESS, FILE, MASTER, NET, NET_ENDPOINTS } from "@/conf/conf-net";
import Net from "./net";
 
// APP
export const app = new Net(
    NET.APP.URI + '/' + NET.APP.API, 
    NET_ENDPOINTS[ APP ],  APP,
    NET.APP.JWT_FUNCTION,
    NET.APP.TIMEOUT_GET, NET.APP.TIMEOUT_POS, NET.APP.IS_LOG
);

// 主数据源
export const master = new Net(
    NET.MASTER.URI + '/' + NET.MASTER.API, 
    NET_ENDPOINTS[ MASTER ], MASTER,
    NET.MASTER.JWT_FUNCTION,
    NET.MASTER.TIMEOUT_GET, NET.MASTER.TIMEOUT_POS, NET.MASTER.IS_LOG
);

// 商业数据源
export const business = new Net(
    NET.BUSINESS.URI + '/' + NET.BUSINESS.API, 
    NET_ENDPOINTS[ BUSINESS ], BUSINESS,
    NET.BUSINESS.JWT_FUNCTION,
    NET.BUSINESS.TIMEOUT_GET, NET.BUSINESS.TIMEOUT_POS, NET.BUSINESS.IS_LOG
);

// 文件上传
export const file = new Net(
    NET.FILE.URI + '/' + NET.FILE.API, 
    NET_ENDPOINTS[ FILE ], FILE,
    NET.FILE.JWT_FUNCTION,
    NET.FILE.TIMEOUT_GET, NET.FILE.TIMEOUT_POS, NET.FILE.IS_LOG
);